function Callbackfuc() {}
import { DispatchCallback } from  './DispatchCallback'
import { DispatchCallbackNew } from  './DispatchCallbackNew'
Callbackfuc.DispatchCallback=function(Type, Parm) {
    console.log("Dispatch CallBack" + Type + Parm);
    switch(Type) {
        case "InitializeRsp":
            DispatchCallback.Initializersp(Parm.Result);
            break;
        case "UninitializeRsp":
            DispatchCallback.UninitializeRsp(Parm.Result);
            break;
        case "LoginRsp":
            DispatchCallback.LoginRsp(Parm.Result, Parm);
            break;
        case "LogoutRsp":
            DispatchCallback.LogoutRsp(Parm.Result);
            break;
      case "ServerLinkStatusNotify":
        DispatchCallback.ServerLinkStatusNotify(Parm);
        break;
      case "MonitorVideoStatusNotify":
        /*if (Parm.Status == 2)
        {
            VideoLibArray[0].StartDisplay(CallArray[0]);
        }*/
        DispatchCallback.MonitorVideoStatusNotify(Parm);
        break;
      case "MonitorVideoIncomingCallNotify":
        DispatchCallback.MonitorVideoIncomingCallNotify(Parm);
        break;
      case "VoipCallStatusNotify":
        DispatchCallback.VoipCallStatusNotify(Type,Parm);
        break;
      case "VoipIncomingCallNotify":
        DispatchCallback.VoipIncomingCallNotify(Parm);
        break;
      case "ConferenceStatusNotify":
        DispatchCallback.ConferenceStatusNotify(Type,Parm);
        break;
//                case "PttMonitorRsp":
//                  DispatchCallback.PttMonitorRsp(Parm.Type,Parm.Result);
//              	break;
//                case "LoginRsp":
//                  DispatchCallback.PttMonitorRsp(Parm.Type,Parm.Result);
//              	break;
      case "LocStartSubscribeRsp":
        DispatchCallback.LocStartSubscribeRsp(Parm);
        break;
      case "LocUpdateNotify":
        DispatchCallback.LocUpdateNotify(Parm);
        break;
      case "VideoFileRsp":
        DispatchCallback.VideoFileRsp(Parm);
        break;
      case "StatusNotify":
        DispatchCallback.StatusNotify(Parm.StatusList);
        break;
      case "MsgSendRsp":
        DispatchCallback.MsgSendRsp(Parm);
        break;
      case "MsgRecvNotify":
        DispatchCallback.MsgRecvNotify(Parm,Parm.TargetType,Parm.MsgType );
        break;
      case "ServerBroadcastNotify":
        DispatchCallback.ServerBroadcastNotify(Parm);
        break;
      case "LocalDevShowRsp":
        DispatchCallback.LocalDevShowRsp(Parm);
        break;
      case "PttMonitorRsp":
        DispatchCallback.PttMonitorRsp(Parm);
        break;
      case "PttCallRsp":
        DispatchCallback.PttCallRsp(Parm);
        break;
      case "PttTalkRequestRsp":
        DispatchCallback.PttTalkRequestRsp(Parm);
        break;
      case "PttTalkReleaseRsp":
        DispatchCallback.PttTalkReleaseRsp(Parm);
        break;
      case "PttCallStatusNotify":
        DispatchCallback.PttCallStatusNotify(Parm);
        break;
      case "PttTalkStatusNotify":
        DispatchCallback.PttTalkStatusNotify(Parm);
        break;
      case "FenceNotify":
        DispatchCallback.FenceNotify(Parm);
        break;
      case "FenceHandleNotify":
        DispatchCallback.FenceHandleNotify(Parm);
        break;
      case "ServerBroadcastNotify":
        DispatchCallback.ServerBroadcastNotify(Parm);
        break;
      case "PttDesktopPttNotify":
        DispatchCallback.PttDesktopPttNotify(Parm);
        break;
      case "WinMsgNotify":
        DispatchCallback.WinMsgNotify(Parm);
        break;
      case "VoipDispatchMoniterStatusNotify":
        DispatchCallback.VoipDispatchMoniterStatusNotify(Type,Parm);
        break;
      case "VoipHoldCallRsp":
        DispatchCallback.VoipHoldCallRsp(Type,Parm);
        break;
      case "VoipTransferCallRsp":
        DispatchCallback.VoipTransferCallRsp(Type,Parm);
        break;
      case "VoipDispatchCallRsp":
        DispatchCallback.VoipDispatchCallRsp(Parm);
        break;
      case "VoipDispatchFifoNotify":
        DispatchCallback.VoipDispatchFifoNotify(Type,Parm);
        break;
      case "ConferenceInviteNotify":
        DispatchCallback.ConferenceInviteNotify(Type,Parm);
        break;
      case "ConferenceEnterNotify":
        DispatchCallback.ConferenceEnterNotify(Type,Parm);
        break;
    }
}

Callbackfuc.WebDispatchCallback=function(Type, Parm) {
  console.log("Dispatch CallBack" + Type + Parm);
  switch(Type) {
    case "InitializeRsp":
      console.log("网页登陆前初始化111111111111");
      DispatchCallback.WebInitializersp(Parm.Result);
      break;
    case "UninitializeRsp":
      DispatchCallback.WebUninitializeRsp(Parm.Result);
      break;
    case "LoginRsp":
      DispatchCallback.LoginRsp(Parm.Result, Parm);
      break;
    case "LogoutRsp":
      DispatchCallback.LogoutRsp(Parm.Result);
      break;
    case "ServerLinkStatusNotify":
      DispatchCallback.ServerLinkStatusNotify(Parm);
      break;
    case "MonitorVideoStatusNotify":
      /*if (Parm.Status == 2)
      {
          VideoLibArray[0].StartDisplay(CallArray[0]);
      }*/
      DispatchCallback.MonitorVideoStatusNotify(Parm);
      break;
    case "MonitorVideoIncomingCallNotify":
      DispatchCallback.MonitorVideoIncomingCallNotify(Parm);
      break;
    case "VoipCallStatusNotify":
      DispatchCallback.VoipCallStatusNotify(Type,Parm);
      break;
    case "VoipIncomingCallNotify":
      DispatchCallback.VoipIncomingCallNotify(Parm);
      break;
    case "ConferenceStatusNotify":
      DispatchCallback.ConferenceStatusNotify(Type,Parm);
      break;
//                case "PttMonitorRsp":
//                  DispatchCallback.PttMonitorRsp(Parm.Type,Parm.Result);
//              	break;
//                case "LoginRsp":
//                  DispatchCallback.PttMonitorRsp(Parm.Type,Parm.Result);
//              	break;
    case "LocStartSubscribeRsp":
      DispatchCallback.LocStartSubscribeRsp(Parm);
      break;
    case "LocUpdateNotify":
      DispatchCallback.LocUpdateNotify(Parm);
      break;
    case "VideoFileRsp":
      DispatchCallback.VideoFileRsp(Parm);
      break;
    case "StatusNotify":
      DispatchCallback.StatusNotify(Parm.StatusList);
      break;
    case "MsgSendRsp":
      DispatchCallback.MsgSendRsp(Parm);
      break;
    case "MsgRecvNotify":
      DispatchCallback.MsgRecvNotify(Parm,Parm.TargetType,Parm.MsgType );
      break;
    case "ServerBroadcastNotify":
      DispatchCallback.ServerBroadcastNotify(Parm);
      break;
    case "LocalDevShowRsp":
      DispatchCallback.LocalDevShowRsp(Parm);
      break;
    case "PttMonitorRsp":
      DispatchCallback.PttMonitorRsp(Parm);
      break;
    case "PttCallRsp":
      DispatchCallback.PttCallRsp(Parm);
      break;
    case "PttTalkRequestRsp":
      DispatchCallback.PttTalkRequestRsp(Parm);
      break;
    case "PttTalkReleaseRsp":
      DispatchCallback.PttTalkReleaseRsp(Parm);
      break;
    case "PttCallStatusNotify":
      DispatchCallback.PttCallStatusNotify(Parm);
      break;
    case "PttTalkStatusNotify":
      DispatchCallback.PttTalkStatusNotify(Parm);
      break;
    case "FenceNotify":
      DispatchCallback.FenceNotify(Parm);
      break;
    case "FenceHandleNotify":
      DispatchCallback.FenceHandleNotify(Parm);
      break;
    case "ServerBroadcastNotify":
      DispatchCallback.ServerBroadcastNotify(Parm);
      break;
    case "PttDesktopPttNotify":
      DispatchCallback.PttDesktopPttNotify(Parm);
      break;
    case "WinMsgNotify":
      DispatchCallback.WinMsgNotify(Parm);
      break;
    case "VoipDispatchMoniterStatusNotify":
      DispatchCallback.VoipDispatchMoniterStatusNotify(Type,Parm);
      break;
    case "VoipHoldCallRsp":
      DispatchCallback.VoipHoldCallRsp(Type,Parm);
      break;
    case "VoipTransferCallRsp":
      DispatchCallback.VoipTransferCallRsp(Type,Parm);
      break;
    case "VoipDispatchCallRsp":
      DispatchCallback.VoipDispatchCallRsp(Parm);
      break;
    case "VoipDispatchFifoNotify":
      DispatchCallback.VoipDispatchFifoNotify(Type,Parm);
      break;
    case "ConferenceInviteNotify":
      DispatchCallback.ConferenceInviteNotify(Type,Parm);
      break;
    case "ConferenceEnterNotify":
      DispatchCallback.ConferenceEnterNotify(Type,Parm);
      break;
  }
}

Callbackfuc.DispatchCallBack=function(Type, Parm) {
    console.log("Dispatch CallBack" + Type + Parm);
    switch(Type){
        case "InitializeRsp":
          DispatchCallback.InitializeRsp(Parm.Result);
            break;
        case "UninitializeRsp":
            DispatchCallback.UninitializeRsp(Parm.Result);
            break;
        case "LoginRsp":
            DispatchCallback.LoginRsp(Parm.Result,Parm);
            break;
        case "LogoutRsp":
            DispatchCallback.LogoutRsp(Parm.Result);
            break;
    }
}

Callbackfuc.DispatchCallbackNew=function(Type, Parm) {
  console.log("DispatchCallbackNew" + Type + Parm);
  switch(Type) {
    case "InitializeRsp":
      DispatchCallbackNew.Initializersp(Parm.Result);
      break;
    case "UninitializeRsp":
      DispatchCallbackNew.UninitializeRsp(Parm.Result);
      break;
    case "LoginRsp":
      DispatchCallbackNew.LoginRsp(Parm.Result, Parm);
      break;
    case "LogoutRsp":
      DispatchCallbackNew.LogoutRsp(Parm.Result);
      break;
    case "ServerLinkStatusNotify":
      DispatchCallbackNew.ServerLinkStatusNotify(Parm);
      break;
    case "MonitorVideoStatusNotify":
      /*if (Parm.Status == 2)
      {
          VideoLibArray[0].StartDisplay(CallArray[0]);
      }*/
      DispatchCallbackNew.MonitorVideoStatusNotify(Parm);
      break;
    case "MonitorVideoIncomingCallNotify":
      DispatchCallbackNew.MonitorVideoIncomingCallNotify(Parm);
      break;
    case "VoipCallStatusNotify":
      DispatchCallbackNew.VoipCallStatusNotify(Type,Parm);
      break;
    case "VoipIncomingCallNotify":
      DispatchCallbackNew.VoipIncomingCallNotify(Parm);
      break;
    case "ConferenceStatusNotify":
      DispatchCallbackNew.ConferenceStatusNotify(Type,Parm);
      break;
    case "ConferenceEnterNotify":
      DispatchCallbackNew.ConferenceEnterNotify(Type,Parm);
      break;
    case "LocStartSubscribeRsp":
      DispatchCallbackNew.LocStartSubscribeRsp(Parm);
      break;
    case "LocUpdateNotify":
      DispatchCallbackNew.LocUpdateNotify(Parm);
      break;
    case "VideoFileRsp":
      DispatchCallbackNew.VideoFileRsp(Parm);
      break;
    case "StatusNotify":
      DispatchCallbackNew.StatusNotify(Parm.StatusList);
      break;
    case "MsgSendRsp":
      DispatchCallbackNew.MsgSendRsp(Parm);
      break;
    case "MsgRecvNotify":
      DispatchCallbackNew.MsgRecvNotify(Parm,Parm.TargetType,Parm.MsgType );
      break;
    case "ServerBroadcastNotify":
      DispatchCallbackNew.ServerBroadcastNotify(Parm);
      break;
    case "LocalDevShowRsp":
      DispatchCallbackNew.LocalDevShowRsp(Parm);
      break;
    case "PttMonitorRsp":
      DispatchCallbackNew.PttMonitorRsp(Parm);
      break;
    case "PttCallRsp":
      DispatchCallbackNew.PttCallRsp(Parm);
      break;
    case "PttTalkRequestRsp":
      DispatchCallbackNew.PttTalkRequestRsp(Parm);
      break;
    case "PttTalkReleaseRsp":
      DispatchCallbackNew.PttTalkReleaseRsp(Parm);
      break;
    case "PttCallStatusNotify":
      DispatchCallbackNew.PttCallStatusNotify(Parm);
      break;
    case "PttTalkStatusNotify":
      DispatchCallbackNew.PttTalkStatusNotify(Parm);
      break;
    case "FenceNotify":
      DispatchCallbackNew.FenceNotify(Parm);
      break;
    case "FenceHandleNotify":
      DispatchCallbackNew.FenceHandleNotify(Parm);
      break;
    case "ServerBroadcastNotify":
      DispatchCallbackNew.ServerBroadcastNotify(Parm);
      break;
    case "PttDesktopPttNotify":
      DispatchCallbackNew.PttDesktopPttNotify(Parm);
      break;
    case "WinMsgNotify":
      DispatchCallbackNew.WinMsgNotify(Parm);
      break;
    case "VoipDispatchMoniterStatusNotify":
      DispatchCallbackNew.VoipDispatchMoniterStatusNotify(Type,Parm);
      break;
    case "VoipHoldCallRsp":
      DispatchCallbackNew.VoipHoldCallRsp(Parm);
      break;
    case "VoipTransferCallRsp":
      DispatchCallbackNew.VoipTransferCallRsp(Parm);
      break;
    case "VoipDispatchCallRsp":
      DispatchCallbackNew.VoipDispatchCallRsp(Parm);
      break;
    case "VoipDispatchFifoNotify":
      DispatchCallbackNew.VoipDispatchFifoNotify(Type,Parm);
      break;
    case "ConferenceInviteNotify":
      DispatchCallbackNew.ConferenceInviteNotify(Type,Parm);
      break;

  }
}
export { Callbackfuc }
